// png file loader

#pragma once

#include <png.h>

class Png
{
	void abort_(const char * s, ...);

public:
	Png(): data(NULL), width(0), height(0) {}
	Png(const char* filename) { loadPng(filename); }

	png_bytep data;
	png_uint_32 width;
	png_uint_32 height;

	void loadPng(const char* file_name);
};

// end of pngLoader.h
